using System;
using System.ComponentModel;
using System.Collections.Generic;

/// <summary>
/// Business entity class generated from Account
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-22]
/// </remarks>
namespace TVN.ShopMan.Entities
{
	public partial class AccountEntity
	{
		#region Properties
		
		public partial class Properties
		{
			public const string Id = "Id";
			public const string Username = "Username";
			public const string Password = "Password";
			public const string FullName = "FullName";
			public const string Email = "Email";
			public const string IsActive = "IsActive";
			public const string CreatedDate = "CreatedDate";
			public const string LastModifiedDate = "LastModifiedDate";
			public const string CreatedBy = "CreatedBy";
			public const string LastModifiedBy = "LastModifiedBy";
		}

		#endregion

		#region Private fields

		private long _id;
		private string _username;
		private string _password;
		private string _fullName;
		private string _email;
		private bool _isActive;
		private DateTime _createdDate;
		private DateTime? _lastModifiedDate;
		private AccountEntity _createdBy;
		private AccountEntity _lastModifiedBy;

		private IList<AccountEntity> _accountsCreatedBy = new List<AccountEntity>();
		private IList<AccountEntity> _accountsLastModifiedBy = new List<AccountEntity>();
		private IList<AccountPhoneNumberEntity> _accountPhoneNumbersAccountId = new List<AccountPhoneNumberEntity>();
		private IList<AccountRepositoryEntity> _accountRepositoriesAccountId = new List<AccountRepositoryEntity>();
		private IList<AccountRepositoryEntity> _accountRepositoriesCreatedBy = new List<AccountRepositoryEntity>();
		private IList<AccountRepositoryEntity> _accountRepositoriesLastModifiedBy = new List<AccountRepositoryEntity>();
		private IList<ContactPointEntity> _contactPointsCreatedBy = new List<ContactPointEntity>();
		private IList<ContactPointEntity> _contactPointsLastModifiedBy = new List<ContactPointEntity>();
		private IList<GenericDataEntity> _genericDatasCreatedBy = new List<GenericDataEntity>();
		private IList<GenericDataEntity> _genericDatasLastModifiedBy = new List<GenericDataEntity>();
		private IList<OrderSummaryEntity> _orderSummariesCreatedBy = new List<OrderSummaryEntity>();
		private IList<OrderSummaryEntity> _orderSummariesLastModifiedBy = new List<OrderSummaryEntity>();
		private IList<PhoneNumberEntity> _phoneNumbersCreatedBy = new List<PhoneNumberEntity>();
		private IList<PhoneNumberEntity> _phoneNumbersLastModifiedBy = new List<PhoneNumberEntity>();
		private IList<ProductEntity> _productsCreatedBy = new List<ProductEntity>();
		private IList<ProductEntity> _productsLastModifiedBy = new List<ProductEntity>();
		private IList<ProductRepositoryEntity> _productRepositoriesCreatedBy = new List<ProductRepositoryEntity>();
		private IList<ProductRepositoryEntity> _productRepositoriesLastModifiedBy = new List<ProductRepositoryEntity>();
		private IList<RepositoryEntity> _repositoriesCreatedBy = new List<RepositoryEntity>();
		private IList<RepositoryEntity> _repositoriesLastModifiedBy = new List<RepositoryEntity>();
		private IList<RepositoryEntity> _repositoriesOwnerId = new List<RepositoryEntity>();
		private IList<SupplierEntity> _suppliersCreatedBy = new List<SupplierEntity>();
		private IList<SupplierEntity> _suppliersLastModifiedBy = new List<SupplierEntity>();
		private IList<UnitEntity> _unitsCreatedBy = new List<UnitEntity>();
		private IList<UnitEntity> _unitsLastModifiedBy = new List<UnitEntity>();

		#endregion

		#region Constructors

		public AccountEntity()
		{
		}

		#endregion

		#region Properties

		public long Id
		{
			get { return _id; }
		}

		public string Username
		{
			get { return _username; }
			set { _username = value; }
		}

		public string Password
		{
			get { return _password; }
			set { _password = value; }
		}

		public string FullName
		{
			get { return _fullName; }
			set { _fullName = value; }
		}

		public string Email
		{
			get { return _email; }
			set { _email = value; }
		}

		public bool IsActive
		{
			get { return _isActive; }
			set { _isActive = value; }
		}

		public DateTime CreatedDate
		{
			get { return _createdDate; }
			set { _createdDate = value; }
		}

		public DateTime? LastModifiedDate
		{
			get { return _lastModifiedDate; }
			set { _lastModifiedDate = value; }
		}

		public AccountEntity CreatedBy
		{
			get { return _createdBy; }
			set { _createdBy = value; }
		}

		public AccountEntity LastModifiedBy
		{
			get { return _lastModifiedBy; }
			set { _lastModifiedBy = value; }
		}

		public IList<AccountEntity> AccountsCreatedBy
		{
			get { return _accountsCreatedBy; }
			set { _accountsCreatedBy = value; }
		}
		public IList<AccountEntity> AccountsLastModifiedBy
		{
			get { return _accountsLastModifiedBy; }
			set { _accountsLastModifiedBy = value; }
		}
		public IList<AccountPhoneNumberEntity> AccountPhoneNumbersAccountId
		{
			get { return _accountPhoneNumbersAccountId; }
			set { _accountPhoneNumbersAccountId = value; }
		}
		public IList<AccountRepositoryEntity> AccountRepositoriesAccountId
		{
			get { return _accountRepositoriesAccountId; }
			set { _accountRepositoriesAccountId = value; }
		}
		public IList<AccountRepositoryEntity> AccountRepositoriesCreatedBy
		{
			get { return _accountRepositoriesCreatedBy; }
			set { _accountRepositoriesCreatedBy = value; }
		}
		public IList<AccountRepositoryEntity> AccountRepositoriesLastModifiedBy
		{
			get { return _accountRepositoriesLastModifiedBy; }
			set { _accountRepositoriesLastModifiedBy = value; }
		}
		public IList<ContactPointEntity> ContactPointsCreatedBy
		{
			get { return _contactPointsCreatedBy; }
			set { _contactPointsCreatedBy = value; }
		}
		public IList<ContactPointEntity> ContactPointsLastModifiedBy
		{
			get { return _contactPointsLastModifiedBy; }
			set { _contactPointsLastModifiedBy = value; }
		}
		public IList<GenericDataEntity> GenericDatasCreatedBy
		{
			get { return _genericDatasCreatedBy; }
			set { _genericDatasCreatedBy = value; }
		}
		public IList<GenericDataEntity> GenericDatasLastModifiedBy
		{
			get { return _genericDatasLastModifiedBy; }
			set { _genericDatasLastModifiedBy = value; }
		}
		public IList<OrderSummaryEntity> OrderSummariesCreatedBy
		{
			get { return _orderSummariesCreatedBy; }
			set { _orderSummariesCreatedBy = value; }
		}
		public IList<OrderSummaryEntity> OrderSummariesLastModifiedBy
		{
			get { return _orderSummariesLastModifiedBy; }
			set { _orderSummariesLastModifiedBy = value; }
		}
		public IList<PhoneNumberEntity> PhoneNumbersCreatedBy
		{
			get { return _phoneNumbersCreatedBy; }
			set { _phoneNumbersCreatedBy = value; }
		}
		public IList<PhoneNumberEntity> PhoneNumbersLastModifiedBy
		{
			get { return _phoneNumbersLastModifiedBy; }
			set { _phoneNumbersLastModifiedBy = value; }
		}
		public IList<ProductEntity> ProductsCreatedBy
		{
			get { return _productsCreatedBy; }
			set { _productsCreatedBy = value; }
		}
		public IList<ProductEntity> ProductsLastModifiedBy
		{
			get { return _productsLastModifiedBy; }
			set { _productsLastModifiedBy = value; }
		}
		public IList<ProductRepositoryEntity> ProductRepositoriesCreatedBy
		{
			get { return _productRepositoriesCreatedBy; }
			set { _productRepositoriesCreatedBy = value; }
		}
		public IList<ProductRepositoryEntity> ProductRepositoriesLastModifiedBy
		{
			get { return _productRepositoriesLastModifiedBy; }
			set { _productRepositoriesLastModifiedBy = value; }
		}
		public IList<RepositoryEntity> RepositoriesCreatedBy
		{
			get { return _repositoriesCreatedBy; }
			set { _repositoriesCreatedBy = value; }
		}
		public IList<RepositoryEntity> RepositoriesLastModifiedBy
		{
			get { return _repositoriesLastModifiedBy; }
			set { _repositoriesLastModifiedBy = value; }
		}
		public IList<RepositoryEntity> RepositoriesOwnerId
		{
			get { return _repositoriesOwnerId; }
			set { _repositoriesOwnerId = value; }
		}
		public IList<SupplierEntity> SuppliersCreatedBy
		{
			get { return _suppliersCreatedBy; }
			set { _suppliersCreatedBy = value; }
		}
		public IList<SupplierEntity> SuppliersLastModifiedBy
		{
			get { return _suppliersLastModifiedBy; }
			set { _suppliersLastModifiedBy = value; }
		}
		public IList<UnitEntity> UnitsCreatedBy
		{
			get { return _unitsCreatedBy; }
			set { _unitsCreatedBy = value; }
		}
		public IList<UnitEntity> UnitsLastModifiedBy
		{
			get { return _unitsLastModifiedBy; }
			set { _unitsLastModifiedBy = value; }
		}
		#endregion

	} }

